package com.dog.basics.bean.model.common;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 短信记录表
 * </p>
 *
 * @author guoy
 * @since 2020-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dog_sms_log")
public class DogSmsLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 手机号码
     */
    @TableField("user_phone")
    private String userPhone;

    /**
     * 短信内容
     */
    private String content;

    /**
     * 手机验证码
     */
    @TableField("mobile_code")
    private String mobileCode;

    /**
     * 短信类型  1:注册  2:验证 3忘记密码 4绑定 5订单短信
     */
    private Integer type;

    /**
     * 发送时间
     */
    @TableField("rec_date")
    private Long recDate;

    /**
     * 发送短信返回码
     */
    @TableField("response_code")
    private String responseCode;

    /**
     * 状态  1:有效  0：失效
     */
    private Integer status;


}
